-- GENERATED SPELL FOR [Ice Claw Bear] --


function spell0_1196(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16827,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 579, 1)
end

function spell1_1196(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 580, 1)
end

function spell2_1196(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 0, 1)
end

function spell3_1196(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 0, 1)
end

function spell4_1196(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 0, 1)
end

function spell5_1196(pUnit, Event) --@Ice Claw,n/a--
pUnit:FullCastSpellOnTarget(3130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 6000, 1)
end

function spell6_1196(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(50256,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1196', 0, 1)
end

function Sorts_1196(pUnit, Event)
local choix_sorts_1196 = math.random(0, 6)
if choix_sorts_1196 == 0 then
pUnit:RegisterEvent('spell0_1196', 1, 1)
end
if choix_sorts_1196 == 1 then
pUnit:RegisterEvent('spell1_1196', 1, 1)
end
if choix_sorts_1196 == 2 then
pUnit:RegisterEvent('spell2_1196', 1, 1)
end
if choix_sorts_1196 == 3 then
pUnit:RegisterEvent('spell3_1196', 1, 1)
end
if choix_sorts_1196 == 4 then
pUnit:RegisterEvent('spell4_1196', 1, 1)
end
if choix_sorts_1196 == 5 then
pUnit:RegisterEvent('spell5_1196', 1, 1)
end
if choix_sorts_1196 == 6 then
pUnit:RegisterEvent('spell6_1196', 1, 1)
end
end

function mob1196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1196', math.random(1500, 3000), 1)
end

function mob1196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1196, 1, 'mob1196_Action')
RegisterUnitEvent(1196, 2, 'mob1196_Leave')
RegisterUnitEvent(1196, 3, 'mob1196_Kill')
RegisterUnitEvent(1196, 4, 'mob1196_Die')
